<template>
  <div class="loader">
      <span style="--i:1;"></span>
      <span style="--i:2;"></span>
      <span style="--i:3;"></span>
      <span style="--i:4;"></span>
      <span style="--i:5;"></span>
      <span style="--i:6;"></span>
      <span style="--i:7;"></span>
  </div>
  <svg>
      <filter id="gooey">
          <feGaussianBlur in="SourceGraphic" stdDeviation="10" />
          <feColorMatrix values="
          1 0 0 0 0
          0 1 0 0 0
          0 0 1 0 0
          0 0 0 20 -10
          " />
      </filter>
  </svg>
  <h1 style="text-align: center;color: #03a9f4;">加载中....</h1>
</template>

<style scoped>
* {
  margin: 0;
  padding: 0;
}


.loader {
  position: relative;
  margin-top: 25px;
  width: 100vw;
  height: 200px;
  filter: url(#gooey);
  text-align: center;
}

.loader span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  animation: animate 4s ease-in-out infinite;
  animation-delay: calc(0.2s * var(--i));
}

.loader span::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(20% -20px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 30px #03a9f4;
  background: linear-gradient(#fce4ec, #03a9f4);
}

@keyframes animate {
  0% {
      transform: rotate(0deg);
  }

  50%,
  100% {
      transform: rotate(360deg);
  }
}
</style>
